# build image:
# shell> docker build -t mysql8 .

# run image, build container:
# shell> docker run -d -p 3306:3306 --name mysql8 mysql8
# maybe> --mount type=bind,source=d/tempdata,target=/var/lib/mysql

# run container:
# shell> docker container start mysql8
# shell> docker container stop mysql8

FROM mysql:8
# COPY ./my.cnf /etc/mysql/conf.d
COPY ./init.sql /docker-entrypoint-initdb.d
ENV MYSQL_ROOT_PASSWORD root
# VOLUME ["/var/lib/mysql"]
EXPOSE 3306